/*
Jack Morris
11/20/14
Chapter 6
Page 122
Assinment 1
*/
#include <stdio.h>

int main()
{
  float a, b, c, d, e, f; //inputs
  printf("Enter a number: ");
  scanf("%f", &a);
  printf("Enter a number: ");
  scanf("%f", &b);
  printf("Enter a number: ");
  scanf("%f", &c);
  printf("Enter a number: ");
  scanf("%f", &d);
  printf("Enter a number: ");
  scanf("%f", &e);
  printf("Enter a number: ");
  scanf("%f", &f);
  if (a > b && a > c && a > d && a > e && a > f)//the rest is desiding what the largest number is
  {//                                             and then printing
    printf("The largest number entered was %f", a);
  } 
  else if (b > c && b > d && b > e && b > f)
  {
    printf("The largest number entered was %f", b);
  }
  else if (c > d && c > e && c > f)
  {
    printf("The largest number entered was %f", c);
  }
  else if (d > e && d > f)
  {
    printf("The largest number entered was %f", d);
  }
  else if (d > f)
  {
    printf("The largest number entered was %f", e);
  }
  else 
  {
    printf("The largest number entered was %f", f);
  }
}